 <extend name="Index:basic" />

 <block name="title"><title>我爱预约网添加服务商页面</title></block>
  <block name="files">
  


    <!--<script src="__PUBLIC__/jquery/jquery.cityselect.js"></script>-->
    <link href="__ROOT__/Application/Home/View/Public/Css/Shop/addshop.css" rel="stylesheet" type="text/css" />  

   
    <!--<script src="__PUBLIC__/area.min.js"></script>-->
    <!--<script src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>--> 

    <script src='__ROOT__/Application/Home/View/Public/Js/tablechange.js'></script> 

<!--ueditor-->
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>  
     <script src="__ROOT__/Application/Home/View/Public/Js/Shop/addshop.js"></script> 

  </block>   

  <block name='content'>


     <div class="row">
      <h3>填写商铺信息{$id}</h3>
       <div class="col-md-10 col-md-offset-1">
                   <form class="form-horizontal shop_add_form" action="{:U('shopAdd')}" method='post'>
                    <div class="form-group">
                      <label for="shop_name" class="col-sm-2 control-label">商铺名称 <span style="color:red">*</span></label>
                      <div class="col-sm-6">
                        <input type="email" name="shop_name" class="form-control" id="shop_name" placeholder="商铺名称">
                      </div>
                      <span class="label label-warning shop_name_mess"></span>
                    </div>
                    <div class="form-group">
                      <label for="shop_address" class="col-sm-2 control-label">商铺地址 <span style="color:red">*</span></label>        

                      <div class="col-sm-6">
                        <script type="text/javascript"> 
                          var area = new AreaCtrl("省份:","城市:","地区:");
                          area.write();
                          area.loadData();
                        </script> 

                        <input type="text" name="shop_address" class="form-control" id="shop_address" placeholder="详细地址">
                        <span class="label label-warning shop_address_mess"></span>
                      </div>

                    </div>
                    <!--

                    <div class="form-group">
                      <label for="shop_service" class="col-sm-2 control-label">服务类别 <span style="color:red">*</span></label>
                      <div class="col-sm-6">
                        <select type="text" class="form-control" id="shop_service" placeholder="美食">

                           
                            <option>美食</option>
                            <option>酒店</option>
                         </select>

                      </div>
                    </div>-->

                    <div class="form-group">
                      <label for="shop_telphone" class="col-sm-2 control-label">商铺电话 <span style="color:red">*</span></label>
                      <div class="col-sm-6">
                        <input type="text" name="shop_telephone" class="form-control" id="shop_telphone" placeholder="商铺电话">
                      </div>
                      <span class="label label-warning shop_telphone_mess"></span>
                    </div>
                    <div class="form-group">
                      <label for="shop_open_time" class="col-sm-2 control-label">营业时间 <span style="color:red">*</span></label>
                      <div class="col-sm-6">
                        <input type="text" name="shop_open_time" class="form-control" id="shop_open_time" placeholder="营业时间">
                      </div>
                      <span class="label label-warning shop_open_time_mess"></span>
                    </div>
                    <div class="form-group">
                      <label for="shop_traffic_information" class="col-sm-2 control-label">交通信息</label>
                      <div class="col-sm-6">
                        <input type="text" name="shop_traffic_information" class="form-control" id="shop_traffic_information" placeholder="交通信息">
                      </div>
                    </div>

                     <div class="form-group">
                        <label for="shop_introduction" class="col-sm-2 control-label">店铺简介</label>
                        <div class="col-sm-6"> 


                        <script id="container" name="content" type="text/plain">
                          请在这里填写简介
                        </script>   
                        </div>                     

                      </div>

                    <div class="form-group">

                      <div class="col-sm-offset-2 col-sm-6">
                        <input type="hidden" name="lable" value="0">
                      </div>
                    </div>


                    <div class="form-group">

                      <div class="col-sm-offset-2 col-sm-6">
                        <input id="shop_add" type="button" class="btn btn-default" value="添加商铺">
                      </div>
                    </div>
                  </form> 
                </div> 
     
      
    </div>    
  </block>
